import {View} from '@tarojs/components'
import {CSSProperties} from 'react'

export const CItemBox: React.FC<{
  style?: CSSProperties
}> = ({children, style}): JSX.Element => {
  return (
    <View
      className="w-full rounded-12 overflow-hidden"
      style={Object.assign(
        {
          padding: '12rpx'
        },
        style
      )}
    >
      {children}
    </View>
  )
}
